package com.wdh.kjs.model;

import java.util.ArrayList;

/**
 * Created by feifei on 2016/7/27.
 */
public class Picture {
    public Picture(ArrayList<PictureRule> userData) {
        this.userData = userData;
    }
    public Picture() {

    }
    public ArrayList<PictureRule> getUserData() {

        return userData;
    }

    public void setUserData(ArrayList<PictureRule> userData) {
        this.userData = userData;
    }

    private ArrayList<PictureRule> userData;

    @Override
    public String toString() {
        return "Picture{" +
                "userData='" + userData + '\'' +
                '}';
    }

    public void addUserData(PictureRule pictureRule){
        if (userData==null)
            userData = new ArrayList<>();
        this.userData.add(pictureRule);
    }
}
